package com.woniuxy.lab.woniu_lab.controller.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Pattern;

@Data
@ApiModel("获取验证码表单")
public class GetCodeForm {

    @ApiModelProperty(value = "手机号", example = "13456789001")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    private String phone;

    @ApiModelProperty(value = "场景 限定3种 [login,change_pwd,find_pwd]", example = "login")
    private String sight;

}
